package info.opensoaring.api.igc;

import info.opensoaring.util.igc.LogParser.TLC;

import java.io.Serializable;

public class FixExtension implements Serializable {

    private static final long serialVersionUID = -1444861738610624879L;

    private TLC extension;

    private int startByte;

    private int endByte;

    public FixExtension(TLC extension, int startByte, int endByte) {
	this.extension = extension;
	this.startByte = startByte;
	this.endByte = endByte;
    }

    public TLC getExtension() {
	return extension;
    }

    public void setExtension(TLC extension) {
	this.extension = extension;
    }

    public int getStartByte() {
	return startByte;
    }

    public void setStartByte(int startByte) {
	this.startByte = startByte;
    }

    public int getEndByte() {
	return endByte;
    }

    public void setEndByte(int endByte) {
	this.endByte = endByte;
    }

    public String toString() {
	return extension + " :: [" + startByte + "," + endByte + "]";
    }
}
